import java.io.IOException;

public class Program {
    public static void main(String[] args) throws IOException, InterruptedException {
        System.out.println("Start");
        Master m = new Master("s1:2181,s2:2181,s3:2181");
        m.startZK();
        m.runForMaster();

        if (m.isLeader) {
            System.out.println("is leader");
            Thread.sleep(6000);
        } else
            System.out.println("Some else is the leader ");

        m.stopZk();
        System.out.println("End");
    }
}
